package fr.bordeaux1.planingdesetudiants.controler;

public class CreneauFormater {
	private static String[] jours = {"Lundi","Mardi","Mercredi","Jeudi","Vendredi"};
	private static String[] heures = {"8h-10h","10h-12h","14h-16h","16h-18h"};
	public static String format(int creneau){
		int jour = (creneau-1)/4;
		int heure = (creneau-1)%4;
		return jours[jour]+ " "+heures[heure];
	}
	public static String formatJour(int creneau){
		int jour = (creneau-1)/4;
		return jours[jour];
	}
	public static String getJour(int jour){
		return jours[jour];
	}
	
	public static String formatHeure(int creneau){
		int heure = (creneau-1)%4;
		return heures[heure];
	}
}
